﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace tcm.utils
{
    public class GlobalConstant
    {
        /// <summary>
        /// 管理员权限
        /// </summary>
        public static string AdminPerm = "*:*:*";

        /// <summary>
        /// 管理员角色
        /// </summary>
        public static string AdminRole = "admin";

        /// <summary>
        /// 设备角色
        /// </summary>
        public static string DeviceRole = "device";
        

        /// <summary>
        /// 维护人员角色
        /// </summary>
        public static string RepairRole = "repair";

        /// <summary>
        /// 缓存时间
        /// </summary>
        public static int CacheSecond = 60 * 60 * 24;

        /// <summary>
        /// 验证码
        /// </summary>
        public static string captchaOff = "true";


        /// <summary>
        /// 验证码
        /// </summary>
        public static string UserPermKEY = "CACHE-USER-PERM";

        /// <summary>
        /// 获取用户token
        /// </summary>
        public static string WeChatAccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token";

        /// <summary>
        /// 获取用户信息
        /// </summary>
        public static string WeChatUserinfoUrl = "https://api.weixin.qq.com/sns/userinfo";

        /// <summary>
        /// 获取微信token
        /// </summary>
        public static string WeChatTokenUrl = "https://api.weixin.qq.com/cgi-bin/token";

        /// <summary>
        /// 发送模板信息
        /// </summary>
        public static string WeChatSendMessageUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send";

        /// <summary>
        /// AccessTokenTest
        /// </summary>
        public static string AppidTest = "wx0d55bc2c0bea147d";

        /// <summary>
        /// AccessTokenTest
        /// </summary>
        public static string AppSecretTest = "2606d4a0cb26ff6fdfc1b162bc1a8da5";

        /// <summary>
        /// AccessToken
        /// </summary>
        public static string Appid = "wx076667d99cfd2ec9";

        /// <summary>
        /// AccessToken
        /// </summary>
        public static string AppSecret = "94daab8a1aab4a80885d5d0f844f4991";

        /// <summary>
        /// AccessToken
        /// </summary>
        public static string GrantType = "authorization_code";

        /// <summary>
        /// 用户模板
        /// </summary>
        public static string UserTemplateId = "ex2glaxOuwDZMXKlt_U-JzyCff1M8j7YN4Q7n0QDW0Y";

        /// <summary>
        /// 配送员模板
        /// </summary>
        public static string DeliveryTemplateId = "Tu3XqPA4sL3RKoJFOX5DBwgByFl-t5JFA4gy9YhgXgE";

        /// <summary>
        /// 字体颜色
        /// </summary>
        public static string FontColor = "#173177";

        
        public static int Success = 0;

        public static int Failure = 3;

        ///// <summary>
        ///// JwtSettings_Issuer
        ///// </summary>
        //public static string JwtSettings_Issuer = "TCM.NET";

        ///// <summary>
        ///// JwtSettings_Audience
        ///// </summary>
        //public static string JwtSettings_Audience = "TCM.NET";

        ///// <summary>
        ///// JwtSettings_SecretKey
        ///// </summary>
        //public static string JwtSettings_SecretKey = "SecretKey-TCM.NET-20220101";

        ///// <summary>
        ///// JwtSettings_Expire
        ///// </summary>
        //public static int JwtSettings_Expire = 1440;

    }
}
